﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="rtx_config.aspx.cs" Inherits="AnyOffice.general.system.rtx.rtx_config" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>RTX参数设置</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script src="/aspnet_client/core/function.js"></script>
		<SCRIPT language="javascript">
function check_form()
{
  if(document.getElementById("txtRtxServerIp").value == "")
  {
     alert("RTX服务器地址不能为空！");
     document.getElementById("txtRtxServerIp").focus();
     return false;
  }
  
   if(document.getElementById("txtRtxPort").value == "")
  {
     alert("RTX服务器端口不能为空！");
     document.getElementById("txtRtxPort").focus();
     return false;
  }
  
  if(!checkIsInteger(document.getElementById("txtRtxPort").value))
  {
     alert("RTX服务器端口端口输入不正确，必须为整数！");
     document.getElementById("txtRtxPort").focus();
     return false;
  } 
  
   if(document.getElementById("txtDelayTime").value == "")
  {
     alert("提醒界面停留时间不能为空！");
     document.getElementById("txtDelayTime").focus();
     return false;
  }
  
  if(!checkIsInteger(document.getElementById("txtDelayTime").value))
  {
     alert("提醒界面停留时间输入不正确，必须为整数！");
     document.getElementById("txtDelayTime").focus();
     return false;
  } 
  
   if(document.getElementById("txtSdkServerIp").value == "")
  {
     alert("RTX SDK 服务器IP地址不能为空！");
     document.getElementById("txtSdkServerIp").focus();
     return false;
  }
  
   if(document.getElementById("txtSdkPort").value == "")
  {
     alert("RTX SDK 服务器端口不能为空！");
     document.getElementById("txtSdkPort").focus();
     return false;
  }
  
   if(!checkIsInteger(document.getElementById("txtSdkPort").value))
  {
     alert("RTX SDK 服务器端口输入不正确，必须为整数！");
     document.getElementById("txtSdkPort").focus();
     return false;
  }  
}
		</SCRIPT>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
  <asp:Panel id="pnlMain" runat="server"> 
    <TABLE class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
      <TR> 
        <TD class="Big"><IMG src="/images/menu/rtx.gif" align="absMiddle"><SPAN class="big3"> 
          RTX参数设置</SPAN> </TD>
      </TR>
    </TABLE>
    <BR>
    <TABLE class="small" cellSpacing="1" cellPadding="3" width="90%" bgColor="#000000" border="0">
      <TR class="TableHeader" align="center"> 
        <TD width="180">集成选项</TD>
        <TD width="250">参数</TD>
        <TD>备注</TD>
      </TR>
      <TR class="TableData" align="center" height="30"> 
        <TD>开启RTX集成：</TD>
        <TD align="left"> <asp:CheckBox id="ckbEnabled" runat="server"></asp:CheckBox></TD>
        <TD align="left">请确认您已安装并正确配置了RTX服务端与RTX Server &nbsp;SDK</TD>
      </TR>
      <TR class="TableData" align="center" height="30"> 
        <TD>RTX服务器地址：</TD>
        <TD align="left"> <asp:TextBox id="txtRtxServerIp" runat="server" Columns="20" MaxLength="50" CssClass="BigInput"></asp:TextBox></TD>
        <TD align="left">用于RTX客户端登录（主机名或IP地址）</TD>
      </TR>
      <TR class="TableData" align="center" height="30"> 
        <TD>RTX服务器端口：</TD>
        <TD align="left"> <asp:TextBox id="txtRtxPort" runat="server" Columns="20" MaxLength="6" CssClass="BigInput"></asp:TextBox></TD>
        <TD align="left"><FONT face="宋体">&nbsp;</FONT></TD>
      </TR>
      <TR class="TableData" align="center" height="30"> 
        <TD>开启用户同步：</TD>
        <TD align="left"> <asp:CheckBox id="ckbUserSync" runat="server"></asp:CheckBox></TD>
        <TD align="left"><FONT face="宋体">当OA添加部门、用户时系统自动注册到RTX中</FONT></TD>
      </TR>
      <TR class="TableData" align="center" height="30"> 
        <TD>开启RTX提醒：</TD>
        <TD align="left"> <asp:CheckBox id="ckbSmsRemind" runat="server"></asp:CheckBox></TD>
        <TD align="left">当OA系统有新短信息时通过RTX提醒</TD>
      </TR>
      <TR class="TableData" align="center" height="30"> 
        <TD>提醒界面停留时间：</TD>
        <TD align="left"> <asp:TextBox id="txtDelayTime" runat="server" Columns="6" MaxLength="6" CssClass="BigInput"></asp:TextBox>
          (毫秒)</TD>
        <TD align="left"></TD>
      </TR>
      <TR class="TableHeader" align="center"> 
        <TD>SDK选项</TD>
        <TD>参数</TD>
        <TD>备注</TD>
      </TR>
      <TR class="TableData" align="center" height="30"> 
        <TD>RTX SDK 服务器IP地址：</TD>
        <TD align="left"> <asp:TextBox id="txtSdkServerIp" runat="server" Columns="20" MaxLength="50" CssClass="BigInput"></asp:TextBox></TD>
        <TD align="left"></TD>
      </TR>
      <TR class="TableData" align="center" height="30"> 
        <TD>RTX SDK 服务器端口：&nbsp;&nbsp;</TD>
        <TD align="left"> <asp:TextBox id="txtSdkPort" runat="server" Columns="20" MaxLength="6" CssClass="BigInput"></asp:TextBox></TD>
        <TD align="left"></TD>
      </TR>
      <TR class="TableControl" align="center"> 
        <TD colSpan="3"><INPUT class="BigButton" onclick="return check_form();" type="submit" value="保存" name="submit"> 
        </TD>
      </TR>
    </TABLE>    
  </asp:Panel>
  <asp:Literal id="litMessage" runat="server"></asp:Literal>
  <br>
    <DIV class="small1"><IMG height="18" src="/images/attention.gif" align="absMiddle"> 
      <font color="#ff0000">软件开发商提示：默认集成RTX2006 SP1正式版,RTX其它版本请下载 </font><a href="http://www.anyoffice.net/support/rtx" target="_blank">思道OA 
      RTX集成组件</a><font color="#ff0000"> 进行配置。</font><br>
      关于思道OA集成RTX的配置与使用的更多信息请访问：<a href="http://www.anyoffice.net/support/rtx" target="_blank">http://www.anyoffice.net/support/rtx</a></DIV>
    <br>
		</form>
	</body>
</HTML>

